<div class="topper" th:fragment="header">
    <div class="wrapper">
        <div class="left-bar">
            <div class="back-home divider">
                <em></em><a href="index.html" th:href="@{/}">商城首页</a>
            </div>
        </div>
        <div class="right-bar">
            <div class="login-user sub-menu">
                <a class="menu-hd" href="" th:if="${session.user == null}" th:href="@{/user/login}">登录</a>
                <a class="menu-hd" href="" th:if="${session.user == null}" th:href="@{/reg}">注册</a>
                <a class="menu-hd" href="" th:if="${session.user != null}" th:href="@{/user/center}" th:text="${session.user.username}"></a>
                <a class="menu-hd" href="" th:if="${session.user != null}" th:href="@{/user/logout}">退出</a>
            </div>
            <div class="cart"><em></em><a href="" th:href="@{/user/cart/}">购物车<span class="txt-theme"></span></a></div>
            <div class="order"><em></em><a href="" th:href="@{/user/order/ucOrder/}">我的订单</a></div>
        </div>
    </div>
</div>
